package com.neo.springcloud.alibaba.dao;

import com.neo.springcloud.alibaba.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @InterfaceName: OrderDao
 * @Title: cloud2021
 * @Package: com.neo.springcloud.alibaba.dao
 * @Description:
 * @Author: Kisen
 * @Date: 2021/11/23 0:48
 */
@Mapper
public interface OrderDao {

    //1.新建订单
    int create(Order order);

    //2.修改订单状态，从0修改为1
    int update(@Param("orderId") String orderId, @Param("status") Integer status);
}
